package com.wyw.function.learning.common;

import java.util.*;

/**
 * @Title
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * Update History:
 * Author        Time            Content
 */
public class TransactionClient {
    public static final List<Transaction1> getTransactions() {
        Set<Currency> availableCurrencies = Currency.getAvailableCurrencies();
        List<Transaction1> transactions = new ArrayList<>();
        Iterator<Currency> iterator = availableCurrencies.iterator();
        while (iterator.hasNext()) {
            Currency next = iterator.next();
            transactions.add(new Transaction1(next));
        }
        return transactions;
    }
}
